<script setup>
import axios from "axios"
import { onMounted, ref } from "vue"
let tat = ref("")
onMounted(() => {
    axios.get("api/fk").then(res => {
        tat.value = res.data.data
    })
})
</script>
<template>
        <div class="ldh">
            <div>订单编号：20231102112201</div>
            <div v-for="item in tat" class="lsl">
                <img :src="item.img" alt="">
                <span>{{ item.name }}</span>
                <div class="shu">
                    <span>￥{{item.danjia  }}</span>
                    <span>x{{ item.geshu }}</span>
                </div>
            </div> 
            <div class="wenzi">
            <span>取消订单</span>
            <span>继续付款</span>
        </div>
        </div>
       
</template>
<style scoped>

.ldh {
    width: 90%;
    padding: 10px;
    display: flex;
    margin: 20px;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    border-radius: 10px 10px 10px 10px;
}
.wenzi{
    display: flex;
    justify-content: space-around;
    color: blue;
    align-items: center;
}
.lsl {
    display: flex;
    gap: 10px;
}
.wenzi span:nth-of-type(2){
    width: 100px;
    height: 30px;
    text-align: center;
    padding-top: 2px;
    border-radius: 999px;
    border: 1px solid blue;
}
.yc {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 20px;
}
.wz {
  color: black;
  text-align: center;
  text-decoration: none;
}
.shu{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 50px;
}
</style>
